package cn.snowheart.strategy.order.entity;

import cn.snowheart.strategy.order.enums.OrderType;

import java.math.BigDecimal;

/**
 * 订单类
 *
 * @author liuwanxiang
 * @version 2019/06/24
 */
public class OrderDTO {

    private String code;

    private BigDecimal price;

    private OrderType type;

    public OrderDTO(OrderType type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "OrderDTO{" +
                "code='" + code + '\'' +
                ", price=" + price +
                ", type='" + type + '\'' +
                '}';
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public OrderType getType() {
        return type;
    }

    public void setType(OrderType type) {
        this.type = type;
    }
}
